package state.example;

/**
 * @author Chen Guang
 * @date 2019/4/16 0016 上午 10:53
 */
public class Test {
    public static void main(String[] args) {
        Work emergencyProjects = new Work();
        emergencyProjects.setHour(9);
        emergencyProjects.writeProgram();

        emergencyProjects.setHour(10);
        emergencyProjects.writeProgram();

        emergencyProjects.setHour(12);
        emergencyProjects.writeProgram();

        emergencyProjects.setHour(13);
        emergencyProjects.writeProgram();

        emergencyProjects.setHour(15);
        emergencyProjects.writeProgram();

        emergencyProjects.setHour(17);
        emergencyProjects.writeProgram();

        emergencyProjects.setTaskFinished(true);

        emergencyProjects.setHour(20);
        emergencyProjects.writeProgram();

        emergencyProjects.setHour(23);
        emergencyProjects.writeProgram();
    }
}
